package com.cch.cooperation.api.vip.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cch.cooperation.dao.vip.mapper.VipSubscriptionPlanMapper;
import com.cch.cooperation.dao.vip.model.VipSubscriptionPlan;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class VipSubscriptionPlanServiceImpl {

    @Resource
    private VipSubscriptionPlanMapper mapper;

    public List<VipSubscriptionPlan> queryList() {
        LambdaQueryWrapper<VipSubscriptionPlan> query = new LambdaQueryWrapper<>();
        query.orderByAsc(VipSubscriptionPlan::getCreateTime);
        return mapper.selectList(query);
    }
}
